<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>跨域测试</title>
        <!-- 通过 cdn 形式引入 axios 异步请求库 -->
        <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
        <script>
            // 1.发送异步请求
            axios.get('http://localhost:8080/demo');
        </script>
    </head>
    <body>
        <h1>用来测试跨域</h1>
    </body>
</html>
